package com.superpai.activity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.superpai.R;

/**
 * @author Devin.Hu
 * @date 2011-8-26
 * @version V1.0
 * @description 服务承诺页面
 */
public class WarrantyActivity extends BaseActivity {

	private LinearLayout call;
	
	@Override
	public void onCreate(Bundle paramBundle) {
		super.onCreate(paramBundle);
		this.setContentView(R.layout.warranty);
		initMenuView(this, mIndexMore);
		initViews();
	}
	
	private void initViews(){
		title = (TextView)this.findViewById(R.id.title);
		title.setText(R.string.more_warranty_title);
		
		call = (LinearLayout)this.findViewById(R.id.call);
		call.setOnClickListener(this);
	}

	
	@Override
	public Object doDataConnection(int type) {
		return null;
	}

	@Override
	public void doProcessData(int type, Object... values) {
	}

	@Override
	public void onClick(View v) {
		checkMenu(v);
		
		if(v == call){
			Intent myIntentDial = new Intent(Intent.ACTION_CALL,Uri.parse("tel:"+"15012852380"));
			startActivity(myIntentDial);  
		}
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
		disConnection();
	}
}
